//
//  UIView+Extension.swift
//  SinaWeibo
//
//  Created by yang on 15/11/16.
//  Copyright © 2015年 yang. All rights reserved.
//

import UIKit
extension UIView{
    func NavController() -> UINavigationController?{
    var next = self.nextResponder()
        repeat {
            if next is UINavigationController{
            return next as? UINavigationController
            }
            next = next?.nextResponder()
        }while(next != nil)
    return nil
    }
}
